Api.EnableAliases method

Use EnableAliases to enable the alias feature after configuring the alias index for axes and I/O modules using WriteAxisAlias and WriteIOAlias. Once enabled, the Index parameter in all APIs related to axes and I/O modules will correspond to the alias index.

Namespace: IntervalZero.KINGSTAR.Local.Api

Assembly: IntervalZero.KINGSTAR.Local.Api (in IntervalZero.KINGSTAR.Local.dll) Version: 4.4.0.0

Syntax

C#VB
public KsError EnableAliases(
       bool Active
)
Public Function EnableAliases(
       Active As Boolean
) As KsError

Parameters

Active

Type: bool

This parameter determines whether aliases are used. true to enable, and false to disable aliasing. By default, it is false.

Return value

Type: KsError

A return code of a method.

Remarks

It gets details for each drive and identifies each drive using vendor, product, and alias. If drives are not plugged in the correct order, rearrange the list of drives. Use it after the KINGSTAR Subsystem is started.

Usable EtherCAT states

ecatOP

Examples

C#
N/A

See also

Api Class

IntervalZero.KINGSTAR.Local.Api Namespace